<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE HTML>
<html>
<head>
        <title>宋濟川地產</title>
        <meta charset="UTF-8">
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
        <meta name="description" content="<?php echo C('WEB_SITE_DESCRIPTION');?>">
<meta name="keywords" content="<?php echo C('WEB_SITE_KEYWORD');?>">
        <link href="/sjc/Public/Index/css/bootstrap.min.css" rel="stylesheet" type="text/css"/>
        <link href="/sjc/Public/Index/css/font-awesome.min.css" rel="stylesheet" type="text/css"/>
        <link href="/sjc/Public/Index/dist/css/swiper.min.css" rel="stylesheet" type="text/css"/>
        <link rel="stylesheet" href="/sjc/Public/Index/css/prettyPhoto.css" type="text/css" media="screen" title="prettyPhoto[gallery2] main stylesheet" charset="utf-8" />
        <link href="/sjc/Public/Index/css/sjc.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<!-- 头部 -->
        <div class="top"><div class="logo"><img src="/sjc<?php echo get_cover($logo['logo1'],$field = path);?>"></div></div>
        <div class="col-nav text-center">
            <div class="col-md-12 nav-btn text-center"><span>首頁</span><i class="fa fa-bars nav-ico"></i></div>
            <ul>
                <li class="active"><a href="<?php echo U('Index/index');?>">首頁</a></li>
                <li><a href="<?php echo U('About/index');?>">關於我們</a></li>
                 <li><a href="<?php echo U('Market/index');?>">市場動態</a></li>
                <li><a href="<?php echo U('Search/index');?>">樓盤信息</a></li>
                <li><a href="<?php echo U('Contact/index');?>">聯繫我們</a></li>
            </ul>
        </div>
<style>
.empty{text-align: center; color:#000;}    
</style>    
<!-- /头部 -->

<!-- 主体 -->
<div class="col-search">
<div class="container">
<div class="col-md-12 search search-bg search-li text-center">
<form id='form1' action="<?php echo U('Search/likesearch');?>" method='post'>
<button type="submit" class="search-btn"><i class="fa fa-search search-ico"></i></button>
<span class="search-font">搜索</span>
<input name="title" type="search" class="form-control search-input" placeholder="搜索你想要的樓盤">
<p>
     <?php if(is_array($hots)): foreach($hots as $key=>$val): ?><a class='hots' href="javascript::"><?php echo ($val['title']); ?></a><?php endforeach; endif; ?>    
</p>
</form>
</div>
<form id="form2" action="<?php echo U('Search/tabsearch');?>" method="post">
<div class="col-md-12">
<div class="dropdown col-md-3 rental-btn p-0">
<button id="dLabel" type="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
<span class="rental-title">所在地</span>
<span class="caret"></span>
</button>
<ul class="dropdown-menu rental-ico add" role="menu" aria-labelledby="dLabel">
<input id="adds" name="adds" type="hidden" value="">
<?php if(is_array($search)): foreach($search as $key=>$val): ?><li><?php echo ($val); ?></li><?php endforeach; endif; ?>
</ul>
</div>
<div class="dropdown col-md-3 rental-btn p-0">
<button id="dLabe2" type="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
<span class="rental-title"> 物業類型</span>
<span class="caret"></span>
</button>
<ul class="dropdown-menu rental-ico type" role="menu" aria-labelledby="dLabe2">
<input id="house_type" name="house_type" type="hidden" value="">
<?php if(is_array($search2)): foreach($search2 as $key=>$val): ?><li><?php echo ($val); ?></li><?php endforeach; endif; ?>
</ul>
</div>
<div class="dropdown col-md-3 rental-btn p-0">
<button id="dLabe3" type="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">

<span class="rental-title"> 出租/出售</span>
<span class="caret"></span>
</button>
<ul class="dropdown-menu rental-ico sell" role="menu" aria-labelledby="dLabe3">
<input id="selltype" name="selltype" type="hidden" value="3">
<li data-id="2">出租</li>
<li data-id="1">出售</li>
</ul>
</div>
<div class="dropdown col-md-3 rental-btn p-0">
<button id="dLabe4" type="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">

<span class="rental-title"> 價格範圍</span>
<span class="caret"></span>
</button>
<ul class="dropdown-menu rental-ico prices" role="menu" aria-labelledby="dLabe4">
<input id="prices" name="prices" type="hidden" value="0-99999999">
<?php if(is_array($search3)): foreach($search3 as $key=>$val): ?><li><?php echo ($val[0]); ?>-<?php echo ($val[1]); ?></li><?php endforeach; endif; ?>
</ul>
</div>
</div>
</form>
<div id="json">    
<?php if(is_array($data)): $i = 0; $__LIST__ = $data;if( count($__LIST__)==0 ) : echo "$empty" ;else: foreach($__LIST__ as $key=>$val): $mod = ($i % 2 );++$i;?><div class="col-md-12 col-sm-12 col-xs-12">   
<div class="col-md-4 col-sm-4 p-0 h-301 p-l-i load-i">
<a href="<?php echo U('Search/detail','id='.$val['id']);?>"><img src="/sjc<?php echo (get_cover($val['pic'],'path')); ?>"></a>
</div>
<div class="col-md-8 col-sm-8 h-301 market-bg load-h">
<div class="market-title">
<div class="col-md-6 col-sm-6 col-xs-7 p-0">
<h3><a href="<?php echo U('Search/detail','id='.$val['id']);?>"><?php echo ($val['title']); ?></a>
<span>
<?php if($val['selltype'] == 0): ?>出售
<?php else: ?>
出租<?php endif; ?>
</span>
</h3>
</div>
<div class="col-md-6 col-sm-6 col-xs-5 text-right title-right"><?php echo ($val['unit_price']); echo ($val['prices2']); ?></div>
</div>
<p><?php echo ($val['description']); ?>
</p>
<p class="col-md-8 col-xs-8 p-0 area">
面積：<span><?php echo ($val['area']); echo ($val['unit_area']); ?></span>
</p>
<p class="col-md-8 col-xs-8 p-0 area">
房型：<span><?php echo ($val['shi']); ?></span>室<span><?php echo ($val['ting']); ?></span>廳<span><?php echo ($val['wei']); ?></span>衛
</p>
<div class="col-md-4 col-xs-4 p-0">

</div>
</div>
</div><?php endforeach; endif; else: echo "$empty" ;endif; ?>

</div>

<div class="page col-md-12 col-sm-12 col-xs-12 text-center" style='color: #000'><?php echo ($page); ?></div>
</div>
</div>


<!-- /主体 -->
<!-- footer-->
    <div class="col-md-12 copyright text-center"><?php echo C('WEB_COPYRIGHT');?></div>
    <?php echo C('GOOGLEANALYTICS');?>
        <a class="go-top"><i class="fa fa-angle-up"></i></a>
        <script src="/sjc/Public/Index/js/jquery.min.js" type="text/javascript"></script>
        <script src="/sjc/Public/Index/js/bootstrap.min.js" type="text/javascript"></script>
        <script src="/sjc/Public/Index/dist/js/swiper.js" type="text/javascript"></script>
        <script src="/sjc/Public/Index/js/jquery.prettyPhoto.js" type="text/javascript"></script>
        <script src="/sjc/Public/Index/js/sjc.js" type="text/javascript"></script>
<!--/footer-->
<script src="/sjc/Public/Index/js/jquery.cookie.js" type="text/javascript"></script>
<script src="/sjc/Public/Index/js/tab.js" type="text/javascript"></script>
<script>
 $('.hots').click(function(){
     $('.search-input').attr('value',$(this).html());
     $('#form1').submit();
 })     
</script>    
</body>
</html>